MCS_FLAGS = -debug

if LINUX
MCS_FLAGS += -define:LINUX
endif

if WINDOWS
MCS_FLAGS += -define:WINDOWS
endif

ASSEMBLY_NAME = Dashboard.Mint
ASSEMBLY = $(ASSEMBLY_NAME).dll

dashboarddir = $(pkglibdir)
dashboard_SCRIPTS = $(ASSEMBLY) $(ASSEMBLY).mdb

ASSEMBLY_REFERENCES = \
	-r:../Dashboard/Dashboard.dll \
	-r:../Dashboard.Util/Dashboard.Util.dll \
	$(GLIBSHARP_LIBS) \
	$(GTKSHARP_LIBS) \
	$(GNOMESHARP_LIBS) \
	$(RSVGSHARP_LIBS) \
	-r:Mono.Posix \
	-r:Mono.Cairo

ASSEMBLY_SOURCES =  \
	AssemblyInfo.cs \
	Dashboard.Mint.Actions/Action.cs \
	Dashboard.Mint.Actions/ActionAttribute.cs \
	Dashboard.Mint.Actions/ActionFactory.cs \
	Dashboard.Mint.Actions/ContactShowAction.cs \
	Dashboard.Mint.Actions/FileOpenAction.cs \
	Dashboard.Mint.Actions/MapViewAction.cs \
	Dashboard.Mint.Actions/MediaPlayAction.cs \
	Dashboard.Mint.Actions/TweetReplyAction.cs \
	Dashboard.Mint.Actions/TweetShowAction.cs \
	Dashboard.Mint.Physics/Constraint.cs \
	Dashboard.Mint.Physics/Geometry.cs \
	Dashboard.Mint.Physics/Model.cs \
	Dashboard.Mint.Physics/Particle.cs \
	Dashboard.Mint.Theatrics/Actor.cs \
	Dashboard.Mint.Theatrics/Stage.cs \
	Dashboard.Mint.Tiles/BugTile.cs \
	Dashboard.Mint.Tiles/CalculatorTile.cs \
	Dashboard.Mint.Tiles/FileTile.cs \
	Dashboard.Mint.Tiles/LastFmTile.cs \
	Dashboard.Mint.Tiles/LocationTile.cs \
	Dashboard.Mint.Tiles/MessageTile.cs \
	Dashboard.Mint.Tiles/NoteTile.cs \
	Dashboard.Mint.Tiles/Tile.cs \
	Dashboard.Mint.Tiles/TileAttribute.cs \
	Dashboard.Mint.Tiles/TileBox.cs \
	Dashboard.Mint.Tiles/TileFactory.cs \
	Dashboard.Mint.Tiles/TileFlat.cs \
	Dashboard.Mint.Tiles/TweetTile.cs \
	Dashboard.Mint.Widgets/AnimatedWidget.cs \
	Dashboard.Mint.Widgets/InformationBar.cs \
	Dashboard.Mint.Widgets/Map.cs \
	Dashboard.Mint.Widgets/PieTimeout.cs \
	Dashboard.Mint.Widgets/SlideBar.cs \
	Dashboard.Mint/CairoFu.cs \
	Dashboard.Mint/Util.cs

$(ASSEMBLY): $(ASSEMBLY_SOURCES)
	$(MCS) $(MCS_FLAGS) -target:library -out:$@ $(ASSEMBLY_REFERENCES) $(ASSEMBLY_SOURCES)

EXTRA_DIST = \
	$(ASSEMBLY_SOURCES) \
	AssemblyInfo.cs.in

CLEANFILES = $(ASSEMBLY) *.dll *.exe
DISTCLEANFILES = *.mdb
MAINTAINERCLEANFILES = Makefile.in
